from lywt import App

from PyQt6.QtWidgets import QApplication
from lywt import MainWindow

import sys

# 自定义
from make_ui import convert_ui_files

if __name__ == '__main__':

    convert_ui_files('./lywt/ui')

    app = 2

    if app == 1:
        app = App()
        app.mainloop()
    elif app == 2:
        app = QApplication(sys.argv)
        # app.setStyle('Fusion')    # 在不同的操作系统上提供统一的 UI 界面
        window = MainWindow()
        window.show()
        sys.exit(app.exec())
    else:
        pass
